<?php 
   
header("Cache-Control: no-cache, must-revalidate"); 
echo"<?xml version=\"1.0\"?>\n";
    
$search=$_GET['search'];
    
$dir = opendir("mv");

    
$arr=array();

    

while (($file = readdir($dir)) !== false)   {
        
	if (strpos($file, $search) !==false) $arr[]=$file;
    
}

    

closedir($dir);
?>


<search>
    

<?php
    
foreach ($arr as $value) {
        
	echo "<item>$value</item>";
    
}
    
?>


</search>